package com.lcj.bff.customer.feign;

import com.lcj.bff.customer.controller.form.DriverIdForm;
import com.lcj.bff.customer.controller.form.EstimateOrderMileageAndMinuteForm;
import com.lcj.bff.customer.controller.form.SearchBefittingDriverAboutOrderForm;
import com.lcj.bff.customer.controller.form.SearchOrderForm;
import com.lcj.common.util.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient(value = "aoch-mps")
public interface MpsServiceApi {

    /**
     * 预估里程和时间
     * @param form
     * @return Result
     */
    @PostMapping("/map/estimateOrderMileageAndMinute")
    public Result estimateOrderMileageAndMinute(EstimateOrderMileageAndMinuteForm form);

    /**
     * 搜索适合接单的司机
     * @param form
     * @return Result
     */
    @PostMapping("/driver/location/searchBefittingDriverAboutOrder")
    public Result searchBefittingDriverAboutOrder(SearchBefittingDriverAboutOrderForm form);

    /**
     * 查询订单司机定位
     * @param form
     * @return
     */
    @PostMapping("/driver/location/searchOrderLocationCache")
    public Result searchOrderLocationCache(SearchOrderForm form);
}